import { RouteRecordRaw, createRouter, createWebHistory } from 'vue-router'

const routes: Array<RouteRecordRaw> = [

   // {
   //    path: "/",
   //    name: "Home",
   //    component: () => import("../views/Home.vue"),
   //    children: [
   //       {
   //          path: "demo",
   //          name: "Demo",
   //          component: () => import("../views/Demo.vue")
   //       },

   //    ]
   // },
   {
      path: "/add",
      name: "Demo",
      component: () => import("../views/CustomerAdd.vue")
   },
   {
      path: "/paiBan",
      name: "paiBan",
      component: () => import("../views/PaiBan.vue")
   },
   {
      path: "/login",
      name: "Login",
      component: () => import("../views/Login.vue")
   }

]

const router = createRouter({

   history: createWebHistory(),
   routes

})

 
export default router;

